package engine.newUi
{
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	
	import newx.com.control.NxClip;
	import newx.com.control.button.NxButton;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.tab.NxTab;
	import newx.com.control.text.NxLabel;
	
	public class EquipModifiedUI extends BaseUI
	{
		public var back1			:MovieClip;
		public var typeTab			:NxTab;
		public var roleTab			:NxTab;
		public var itemGroup		:NxViewGroup;
		public var nextBtn			:NxButton;
		public var preBtn			:NxButton;
		public var pageNum			:NxLabel;
		public var yemak			:MovieClip
		public var btn_start		:NxButton;
		public var nowUpItem		:MovieClip;
		public var nowUpItemName	:NxLabel;
		public var nowUpItemLevel	:NxLabel;
		public var back3			:MovieClip;
		public var lab_needwhat	:NxLabel;
		public var lab_needmoney	:NxLabel;
//		public var lab_cdtime		:NxLabel;
		public var back4			:MovieClip;
		public var lab_getwhat		:NxLabel;
		public var lab_prop1		:NxLabel;
		public var lab_prop2		:NxLabel;
		public var lab_prop3		:NxLabel;
		public var equipPic		:NxClip;
		public var fengetiao		:MovieClip
		public var effectMc		:MovieClip;
		public var effect			:MovieClip;
		
		
		/****/
		public var equipPic_1:NxClip ; 
		
		public var bgpic:MovieClip ; 
		public var stuff:NxViewGroup; 
		
		public var btn_1:NxButton ; 
		public var btn_2:NxButton ;
		public var btn_3:NxButton ; 
		public var btn_4:NxButton ; 
		
		public var equipname:NxLabel; 
		public var addLevel:NxLabel ; 
		
		public var lab_prop4:NxLabel; 
		public var lab_prop5:NxLabel; 
		public var lab_prop6:NxLabel; 
		
		public var label_1:NxLabel;
		public var label_2:NxLabel ; 
		public var label_3:NxLabel ; 
		public var label_4:NxLabel ; 
		
		public var bgpic_1:MovieClip ; 
		public var pic_1:NxClip ; 
		
		public var backIma:MovieClip ; 
		
		public var mc_1:MovieClip; 
		
		
		private var _myLogic	:EquipModifiedLogic
		
		private static var _self:EquipModifiedUI;
		
		public var gogo:MovieClip ; 
		//一键强化
		public var updateStart:NxButton;
		public function EquipModifiedUI(popupUI:Boolean=true)
		{
		}
		
		public static function getInstance():EquipModifiedUI
		{
			if(_self == null)
			{
				_self = new EquipModifiedUI();
			}
			return _self;
		}
		override public function Init():void
		{
			roleTab.itemLayout	= NxTab.VERTICAL;
			_myLogic	=	EquipModifiedLogic.getInstance();
		}
		override protected function BeforeShow():void
		{
			_myLogic.addListener();
		}
		
		override protected function AfterHide():void
		{
			_myLogic.removeListener();
		}
	}
}